﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using VietPay.KooBoo.Business.Interfaces;
using System.Web.Mvc;

namespace VietPay.KooBoo.Business.Models
{
    public class BatchViewModel : IBatchModel
    {
        [ReadOnly(true)]
        public int BatchID { get; set; }
        [DisplayName("Code")]
        public string BatchCode{ get; set; }
        [DisplayName("Created Date")]
        public DateTime CreatedDate{ get; set; }
        [DisplayName("User Create")]
        public string UserCreate{ get; set; }
        [DisplayName("DistributorID")]
        public int DistributorID { get; set; }
        [DisplayName("Parent DistributorID")]
        public int ParentDistributorID { get; set; }
        [DisplayName("Description")]
        public string Description { get; set; }
        [ReadOnly(true)]
        public int CategoryID { get; set; }
        [DisplayName("Category Name")]
        public string CategoryName{ get; set; }
        [DisplayName("Status")]
        public int Status { get; set; }
    }

    public class BatchSearchViewModel : IBatchModel
    {
        [ReadOnly(true)]
        public int? ParentDistributorID { get; set; }
        [ReadOnly(true)]
        public int BatchID { get; set; }
        [DisplayName("BatchCode")]
        public string BatchCode { get; set; }
        [DataType(DataType.Date)]
        [DisplayName("CreatedDate")]
        public DateTime? CreatedDate { get; set; }
        [DisplayName("CreatedDate From")]
        public DateTime? FromCreatedDate { get; set; }
        [DisplayName("CreatedDate To")]
        public DateTime? ToCreatedDate { get; set; }
        [ReadOnly(true)]
        public int? CategoryID { get; set; }
        [DisplayName("Category Name")]
        public string CategoryName{ get; set; }
        [DisplayName("Status")]
        public int? StatusValue { get; set; }
        [DisplayName("Quantity ")]
        public int? Quantity { get; set; }

    }
    public class BatchGoodsTree
    {
        public int? DistributorID { set; get; }
        public int BatchDetailID { set; get; }
    }

}